#include "define.h"

int main(int argc, char **argv){
    Elemtype a[] = "dadbabcde";
    Elemtype b[] = "c";
    SString *S, *T, *L = nullptr;

    cout << "---*---" << endl;
    CreateSString(S, a, DIM(a)-1);
    cout << "S: ";
    DisplaySString(S);

    cout << "---*---" << endl;
    CreateSString(T, b, DIM(b)-1);
    cout << "T: ";
    DisplaySString(T);
    cout << KMPIndex(S,T) << endl;

    destroySString(S);
    destroySString(T);
}
